using System;
using Umi.Web.Metadatas.StatusCodes;

namespace Umi.Web.Metadatas.Exceptions
{
    /// <summary>
    ///  Http Status Exception
    /// </summary>
    public class HttpStatusException : SystemException
    {
        public HttpStatusException(HttpStatusCodes codes)
            : base(codes.Message)
        {
            StatusCode = codes;
        }

        /// <summary>
        /// Http 响应码
        /// </summary>
        public HttpStatusCodes StatusCode { get; }
    }
}
